package com.工厂模式.abstratfactory;

public class Client {
    public static void main(String[] args) {

        //要北京口罩工厂造N95
        FirstFactoryInterface bjn95Mask = new BJN95MaskImpl();
        MaskAbstract mask = bjn95Mask.getMask();
        mask.protectedMe();

        //要伦敦披萨工厂造胡椒披萨
        FirstFactoryInterface ldhjPizza = new LDHJPizzaImpl();
        PizzaAbstract pizz = ldhjPizza.getPizz();
        pizz.print();

        //要北京口罩工厂造普通口罩
        FirstFactoryInterface bjCommonMask = new BJCommonMaskImpl();
        MaskAbstract mask1 = bjCommonMask.getMask();
        mask1.protectedMe();

        //要北京披萨工厂造胡椒披萨
        FirstFactoryInterface bjhjPizza = new BJHJPizzaImpl();
        PizzaAbstract pizz1 = bjhjPizza.getPizz();
        pizz1.print();
    }
}
